package com.chapter12.exercise;

import org.w3c.dom.ls.LSOutput;

import java.util.InputMismatchException;
import java.util.Scanner;

public class exercise_1 {
    public static void main(String[] args) {
        boolean parameter = true;
        try {
            Scanner scanner = new Scanner(System.in);
            int c = scanner.nextInt();
            tools tools = new tools();
            tools.division(100, c);
        } catch (ArithmeticException e) {
            System.out.println("算数异常");
        } catch (InputMismatchException f) {
            System.out.println("参数格式不正确");
        } catch (NullPointerException n) {
            System.out.println("空指针异常");
        }
    }
}

class tools {
    public void division(int a, int b) {
        System.out.println(a / b);
    }
}








